package com.example.dw.admin.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 创建用户DTO
 * @author system
 * @since 2024-01-01
 */
@Data
public class CreateUserDTO {
    
    @NotBlank(message = "用户名不能为空")
    private String username;
    
    @NotBlank(message = "密码不能为空")
    private String password;
    
    private String nickname;
    
    private String realname;
    
    @NotNull(message = "角色不能为空")
    private Integer role; // 0-学生 1-教师 2-管理员
    
    private String phone;
    
    private String email;
    
    private Integer gender;
    
    private Integer schoolid;
    
    private String avatar;
    
    private String description;
} 